home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-01
/
grabtext.zip
/
BATCH.C
< prev
next >
Wrap
Text File
|
1990-08-26
|
25KB
|
451 lines
/* demo for embedded .BSV files in aztec C */
/* BATCH.c by bill buckels 1990 */
/* these files can be created in the THEDRAW or in GWBASIC, etc. */
/* arrays are encoded using my utility bsaveinc */
unsigned char BATCH000[]={
255, 32,255, 32,242, 32,193,218,231,196,193,194,197,196,191,225, 32,
179,198, 32,199,220,195, 32,199,220,195, 32,199,220,198, 32,179,197, 32,
179,225, 32,179,199, 32,194,220,195, 32,194,220,195, 32,194,220,195, 32,
194,220,195, 32,194,220,195, 32,194,220,197, 32,179, 32,194, 66, 80,
32,179,225, 32,179,199, 32,198,220,196, 32,198,220,196, 32,198,220,
198, 32,179, 32,195,219, 32,179,225, 32,179,199, 32,194,220,195, 32,
194,220,195, 32,194,220,195, 32,194,220,195, 32,194,220,202, 32,179,
197, 32,179,225, 32,179,198, 32,199,220,195, 32,199,220,196, 32,194,220,
202, 32,179,197, 32,179,225, 32,179,231, 32,179,194, 32,193,249,194, 32,
179,225, 32,179,197, 32, 66,105,194,108, 32, 66,117, 99,107,101,108,
115, 32, 80,114,111,100,117, 99,116,105,111,110,115, 32, 49, 57,194, 56,
197, 32,179,194, 32,111,194, 32,179,225, 32,179,205, 32, 99,111,112,
121,114,105,116,101, 32, 49, 57, 56, 57,205, 32,179,197, 32,179,225, 32,
179,231, 32,179,194, 32,111,194, 32,179,225, 32,179,231, 32,179,197, 32,
179,225, 32,179,231, 32,179,194, 32,111,194, 32,179,225, 32,193,192,
231,196,193,193,197,196,193,217,234, 32,193,219,219, 32,193,219,231, 32,
193,218,244,196,191,218, 32,179,194, 32,193,218,195,196,191,202, 32,
193,218,207,196,191,193,218,207,196,191, 32,179,218, 32,179,194, 32,
179,194, 66, 80,179,202, 32,179,195, 32,196,196, 18,196,196, 32,193,254,
32,194,179,207, 32,179, 32,179,218, 32,179,194, 32,193,192,195,196,
193,217,202, 32,193,195,207,196,180,179,203, 32,193,254, 32,193,254,
32,179, 32,179,218, 32,179, 32,206,186,194, 32,179,195, 32,196,196,
18,196,196, 32,193,254, 32,194,179,207, 32,179, 32,179,218, 32,179,
32,206,186,194, 32,193,192,207,196,193,217,193,192,207,196,193,217,
32,179,218, 32,193,192,244,196,193,217,255, 32,255, 32,239, 32,255, 7,
255, 7,242, 7,239, 96,225, 7, 96,198, 7,219, 3,198, 7,199, 96,
225, 7, 96,199, 7,224, 3,199, 96,225, 7, 96,199, 7,218, 3,198, 7,
199, 96,225, 7, 96,199, 7,214, 3,202, 7,199, 96,225, 7, 96,198, 7,
215, 3,202, 7,199, 96,225, 7, 96,231, 7,199, 96,225, 7, 96,197, 7,
226, 14,199, 96,225, 7, 96,205, 7,205, 14,205, 7,199, 96,225, 7,
96,231, 7,199, 96,225, 7, 96,231, 7,199, 96,225, 7, 96,231, 7,
199, 96,225, 7,239, 96,234, 7, 4,219, 7, 4,231, 7,246, 96,218, 7,
195, 96,197, 3,202, 96,226, 4,194, 96,218, 7,195, 96,197, 3,202, 96,
210, 4,207, 7, 4,194, 96,218, 7,195, 96,197, 3,202, 96,210, 4,
203, 7,197, 4,194, 96,218, 7,194, 96,206, 3,194, 96,210, 4,207, 7,
4,194, 96,218, 7,194, 96,206, 3,194, 96,226, 4,194, 96,218, 7,
246, 96,255, 7,255, 7,239, 7,
0}; /* terminator */
unsigned char BATCH001[]={
194, 32,193,201,255,205,202,205,187,197, 32,186,203, 32,204,220,197, 32,
204,220,197, 32,204,220,208, 32,186,197, 32,186,203, 32,206,220,195, 32,
206,220,195, 32,206,220,206, 32,186,197, 32,186,205, 32,196,220,196, 32,
196,220,197, 32,196,220,196, 32,196,220,197, 32,196,220,196, 32,196,220,
206, 32,186,197, 32,186,205, 32,203,220,198, 32,203,220,198, 32,203,220,
207, 32,186,197, 32,186,205, 32,203,220,198, 32,203,220,198, 32,202,220,
208, 32,186,197, 32,186,205, 32,196,220,196, 32,196,220,197, 32,196,220,
196, 32,196,220,197, 32,196,220,214, 32,186,197, 32,186,203, 32,206,220,
195, 32,206,220,195, 32,200,220,212, 32,186,197, 32,186,203, 32,204,220,
197, 32,204,220,197, 32,200,220,212, 32,186,197, 32,193,204,255,205,
202,205,185,197, 32,186,207, 32, 66,105,194,108, 32, 66,117, 99,107,
101,108,115, 32, 80,114,111,100,117, 99,116,105,111,110,115, 32, 49,
57,194, 56, 32,112,114,101,115,101,110,116,115,212, 32,186,197, 32,
186,207, 32, 79, 98,115,101,114,118, 97,116,105,111,110,115, 32,111,
110, 32, 80, 67, 68, 79, 83, 32, 66, 97,116, 99,104, 32, 80,114,111,
99,101,194,115,105,110,103,212, 32,186,197, 32,186,212, 32, 79,110,
32,116,104,101, 32, 73, 66, 77, 32, 80, 67, 32, 97,110,100, 32, 67,
111,109,112, 97,116, 97, 98,108,101,115,216, 32,186,197, 32,193,204,
255,205,202,205,185,197, 32,186,204, 32,200,220,194, 32,204,220,196, 32,
199,220,199, 32,199,220,206, 32,186,197, 32,186,204, 32,200,220,194, 32,
206,220,194, 32,200,220,197, 32,200,220,206, 32,186,197, 32,186,206, 32,
196,220,198, 32,196,220,196, 32,196,220,196, 32,199,220,195, 32,199,220,
208, 32,186,197, 32,186,206, 32,196,220,198, 32,203,220,197, 32,200,220,
32,200,220,208, 32,186,197, 32,186,206, 32,196,220,198, 32,203,220,
197, 32,196,220, 32,199,220, 32,196,220,208, 32,186,197, 32,186,206, 32,
196,220,198, 32,196,220,196, 32,196,220,196, 32,196,220,194, 32,197,220,
194, 32,196,220,208, 32,186,197, 32,186,204, 32,200,220,194, 32,206,220,
194, 32,198,220,195, 32,195,220,195, 32,198,220,206, 32,186,197, 32,
186,204, 32,200,220,194, 32,204,220,196, 32,198,220,196, 32,193,220,
196, 32,198,220,206, 32,186,197, 32,193,200,255,205,202,205,188,255, 32,
255, 32,229, 32,194, 23,255, 4,204, 4,197, 23, 4,203, 7,238, 1,
208, 7, 4,197, 23, 4,203, 7,240, 1,206, 7, 4,197, 23, 4,205, 7,
238, 1,206, 7, 4,197, 23, 4,205, 7,203, 1,198, 7,203, 1,198, 7,
203, 1,207, 7, 4,197, 23, 4,205, 7,203, 1,198, 7,203, 1,198, 7,
202, 1,208, 7, 4,197, 23, 4,205, 7,230, 1,214, 7, 4,197, 23,
4,203, 7,234, 1,212, 7, 4,197, 23, 4,203, 7,234, 1,212, 7,
4,197, 23,255, 4,204, 4,197, 23, 4,255, 71,202, 71, 4,197, 23,
4,255, 71,202, 71, 4,197, 23, 4,255, 71,202, 71, 4,197, 23,255, 4,
204, 4,197, 23, 4,204, 7,225, 1,199, 7,199, 1,206, 7, 4,197, 23,
4,204, 7,239, 1,206, 7, 4,197, 23, 4,206, 7,196, 1,198, 7,
225, 1,208, 7, 4,197, 23, 4,206, 7,196, 1,198, 7,225, 1,208, 7,
4,197, 23, 4,206, 7,196, 1,198, 7,225, 1,208, 7, 4,197, 23,
4,206, 7,196, 1,198, 7,225, 1,208, 7, 4,197, 23, 4,204, 7,
239, 1,206, 7, 4,197, 23, 4,204, 7,239, 1,206, 7, 4,197, 23,
255, 4,204, 4,195, 23,255, 7,255, 7,226, 7,
0}; /* terminator */
unsigned char BATCH002[]={
194, 32,193,201,255,205,202,205,187,197, 32,186,255, 32,202, 32,186,
197, 32,186,195, 32, 84,104,101, 32, 73, 66, 77, 32, 80, 67, 32,111,
112,101,114, 97,116,105,110,103, 32,115,121,115,116,101,109, 32, 40,
68, 79, 83, 41, 32,105,115, 32,116,104,101, 32,109,111,115,116, 32,
101,194,102,105, 99,105,101,110,116, 32,119, 97,121, 32,102,111,114,
199, 32,186,197, 32,186,195, 32,116,104,101, 32, 97,118,101,114, 97,
103,101, 32,117,115,101,114, 32,116,111, 32,105,194,115,117,101, 32,
105,110,115,116,114,117, 99,116,105,111,110,115, 32,116,111, 32,116,
104,101, 32,112,114,111, 99,101,194,115,111,114, 44, 32, 98,117,116,
32,105,116, 32,105,115,196, 32,186,197, 32,186,195, 32, 97,108,115,
111, 32,116,104,101, 32,109,111,115,116, 32,111,118,101,114,108,194,111,
107,101,100, 32,119,104,101,110, 32,105,116, 32, 99,111,109,101,115,
32,116,105,109,101, 32,102,111,114, 32,109,111,115,116, 32,111,102,
32,117,115, 32,116,111,201, 32,186,197, 32,186,195, 32, 99,111,110,
115,105,100,101,114, 32,119, 97,121,115, 32, 97,110,100, 32,109,101,
97,110,115, 32,116,111, 32,112,114,111, 99,101,194,115, 32,111,117,
114, 32,118, 97,114,105,111,117,115, 32, 99,111,109,112,117,116,105,
110,103, 32,116, 97,115,107,115, 46,199, 32,186,197, 32,186,255, 32,
202, 32,186,197, 32,186,195, 32, 65,194,108, 32,116,194,111, 32,111,
102,116,101,110, 32,119,101, 32,111,112,116, 32,102,111,114, 32, 97,
32,109,101,109,111,114,121, 32,104,111,103, 32,111,102, 32, 97, 32,
102, 97,109,105,108,105, 97,114, 32, 97,194,112,108,105, 99, 97,116,
105,111,110,115,198, 32,186,197, 32,186,195, 32,112,114,111,103,114,
97,109, 32,111,114, 32, 97, 32,114,111,117,116,105,110,101, 32,115,
101,118,101,114, 97,108, 32,108, 97,121,101,114,115, 32,116,104,105,
99,107, 32,105,110, 32, 66, 65, 83, 73, 67, 39,115, 32, 34, 98,111,
103, 32, 97,110,100, 32,109,105,114,101, 34,195, 32,186,197, 32,186,
195, 32,116,111, 32,105,194,115,117,101, 32,111,110,101, 32,111,114,
32,116,119,111, 32,108,105,194,116,108,101, 32,105,110,115,116,114,
117, 99,116,105,111,110,115, 32,116,104, 97,116, 32, 97,114,101, 32,
112,114,111, 98, 97, 98,108,121, 32, 97,118, 97,105,108, 97, 98,108,
101,195, 32,186,197, 32,186,195, 32,105,110, 32, 97, 32,116,105,110,
121, 32, 46, 67,111,109, 32,112,114,111,103,114, 97,109, 32,116,104,
97,116, 32, 99, 97,109,101, 32,119,105,116,104, 32,116,104, 97,116,
32, 99,111,110,102,117,115,105,110,103, 32,112,105,108,101, 32,111,
102, 32,115,116,117,194,102,196, 32,186,197, 32,186,195, 32,111,110,
32,111,117,114, 32, 68,111,115, 32, 68,105,115,107, 46, 32, 40, 73,
102, 32,119,101, 32,104, 97,100, 32,116, 97,107,101,110, 32,116,104,
101, 32,116,105,109,101, 32,116,111, 32,119, 97,100,101, 32,116,104,
114,111,117,103,104, 32,116,104,101,200, 32,186,197, 32,186,195, 32,
109,111,117,110,100,115, 32,111,102, 32,100,111, 99,117,109,101,110,
116, 97,116,105,111,110, 32,119,101, 32,119,111,117,108,100, 32,117,
110,100,101,114,115,116, 97,110,100, 32,116,104, 97,116, 32,116,104,
101, 32, 77, 97,110,121, 32, 70,101, 97,116,117,114,101,115,196, 32,
186,197, 32,186,195, 32,111,110, 32,116,104,101, 32, 70, 97, 99,101,
32,111,102, 32, 68,111,115, 32, 97,114,101, 32, 97, 32,100,101,108,
105, 98,101,114, 97,116,101, 32,101,194,102,111,114,116, 32,116,111,
32,109, 97,107,101, 32,116,104,101, 32,115,121,115,116,101,109, 32,
109,111,114,101,196, 32,186,197, 32,186,195, 32,102,114,105,101,110,
100,108,121, 32, 97,110,100, 32,101,194,102,105, 99,105,101,110,116,
32,116,104, 97,110, 32, 99,111,110,102,117,115,105,110,103, 32, 97,
110,100, 32,116,105,109,101, 45, 99,111,110,115,117,109,105,110,103,
46, 41,204, 32,186,197, 32,186,255, 32,202, 32,186,197, 32,186,195, 32,
84,104,105,115, 32,105,115, 32,119,104,101,114,101, 32,109,111,115,
116, 32,111,102, 32,117,115, 32, 97,115, 32,117,115,101,114,115, 32,
102, 97,105,108, 44, 32, 97,110,100, 32, 97,102,116,101,114, 32, 34,
119,101, 97,114,105,110,103, 32,111,117,114,200, 32,186,197, 32,186,
195, 32,102,105,110,103,101,114,115, 32,116,111, 32,116,104,101, 32,
98,111,110,101, 34, 32,116,121,112,105,110,103, 32,101, 97, 99,104,
32, 97,110,100, 32,101,118,101,114,121, 32, 99,111,194,109, 97,110,
100, 32,105,110, 32,115,111,114,116, 32,111,102, 32, 97,110,198, 32,
186,197, 32,186,195, 32,101,109,117,108, 97,116,105,111,110, 32,111,
102, 32, 34,104,117,110,116, 32, 97,110,100, 32,112,101, 99,107, 34,
32,111,110, 32,116,104,101, 32,109, 97,110,117, 97,108, 32,116,121,
112,101,119,114,105,116,101,114, 44, 32,119,101, 32,115,112,114,105,
110,103, 32,102,111,114,194, 32,186,197, 32,186,195, 32,116,104,101,
32,108, 97,116,101,115,116, 32,118,101,114,115,105,111,110, 32,111,
102, 32, 34, 84,104,101, 32, 70, 97,107,101,119, 97,114,101, 32, 87,
105,110,100,111,119, 32, 77,101,110,117, 32, 77,111,117,115,101, 32,
67,111,194,109, 97,110,100,111, 34,199, 32,186,197, 32,186,195, 32,
97,110,100, 32, 98,101, 99,111,109,101, 32,102,111,114,101,118,101,
114, 32,105,110,101,194,102,101, 99,116,105,118,101, 32,119,104,105,
110,105,110,103, 32, 34,109,101,109,111,114,121, 32,106,117,110,107,
105,101,115, 46, 34,206, 32,186,197, 32,186,255, 32,202, 32,186,197, 32,
193,200,255,205,202,205,188,255, 32,255, 32,229, 32,194, 23,255, 6,
204, 6,197, 23, 6,255, 7,202, 7, 6,197, 23,196, 6,255, 3,199, 7,
6,197, 23,196, 6,255, 3,199, 3, 6,197, 23,196, 6,253, 3,201, 7,
6,197, 23,196, 6,255, 3,199, 7, 6,197, 23, 6,255, 7,202, 7,
6,197, 23,196, 6,255, 4, 4,198, 7, 6,197, 23,196, 6,255, 4,
199, 4, 6,197, 23,196, 6,255, 4,199, 4, 6,197, 23,196, 6,255, 4,
199, 4, 6,197, 23,196, 6,254, 4,200, 7, 6,197, 23,196, 6,255, 4,
199, 4, 6,197, 23,196, 6,255, 4,199, 4, 6,197, 23,196, 6,250, 4,
204, 7, 6,197, 23, 6,255, 7,202, 7, 6,197, 23,196, 6,254, 3,
200, 7, 6,197, 23,196, 6,255, 3, 3,198, 7, 6,197, 23,196, 6,
255, 3,199, 3, 6,197, 23,196, 6,255, 3,199, 7, 6,197, 23,196, 6,
248, 3,206, 7, 6,197, 23, 6,255, 7,202, 7, 6,197, 23,255, 6,
204, 6,195, 23,255, 7,255, 7,226, 7,
0}; /* terminator */
unsigned char BATCH003[]={
194, 32,193,201,255,205,202,205,187,197, 32,186,211, 32, 67,111,194,109,
97,110,100, 46, 67,111,109, 32, 97,110,100, 32,116,104,101, 32, 34,
84,114, 97,105,110, 32,111,102, 32, 67,111,194,109, 97,110,100, 34,
208, 32,186,197, 32,186,199, 32,195,219,196, 32,193,219,194,223,193,219,
247, 32,186,197, 32,186,200, 32,193,219,197, 32,193,219,194, 32,193,219,
32,198,219,200, 32,198,219,200, 32,198,219, 32,198,219,196, 32,193,219,
193,223,193,219,198, 32,186,197, 32,186,199, 32,203,219, 95,198,219,
95,198, 32, 95,198,219, 95,198, 32, 95,198,219, 95,198,219, 95,193,223,
199,219,193,223,195, 32,186,197, 32,186,199, 32,203,219, 32,198,219,
32,198,219, 32,198,219, 32,198,219, 32,198,219, 32,198,219, 32,193,192,
199,219,193,217,195, 32,186,197, 32,186,198, 32,193,219,194, 32, 79,
197, 32, 79,196, 32, 79,194, 32, 79,195, 32, 79,194, 32, 79,195, 32,
79,194, 32, 79,195, 32, 79,194, 32, 79,195, 32, 79,194, 32, 79,195, 32,
79,194, 32, 79,196, 32, 79,195, 32, 79,197, 32,186,197, 32,186,255, 32,
202, 32,186,197, 32,186,195, 32, 66,117,116, 32,105,109, 97,103,105,
110,101, 32,102,111,114, 32, 97, 32,109,111,109,101,110,116, 32,105,
102, 32,121,111,117, 32,107,110,101,119, 32,116,104,101, 32,109,111,
100,117,108,101,115, 32,111,102, 32, 68, 79, 83, 32,119,101,194,108,
32,101,110,111,117,103,104,195, 32,186,197, 32,186,195, 32,116,104,
97,116, 32,121,111,117, 32, 99,111,117,108,100, 32, 99,111,109, 98,
105,110,101, 32,101, 97, 99,104, 32,111,110,101, 32,116,104, 97,116,
32,100,111,101,115, 32,111,110,101, 32,106,111, 98, 32,119,101,194,108,
32,105,110,116,111, 32, 97, 32, 98, 97,116, 99,104,195, 32,186,197, 32,
186,195, 32,106,111, 98, 32, 40,111,114, 32, 99,104, 97,105,110, 32,
111,102, 32, 99,111,194,109, 97,110,100, 32, 97,115, 32,105,116, 32,
119,101,114,101, 41, 32, 97,110,100, 32,116,111, 32,115, 97,118,101,
32, 97,194,108, 32,116,104, 97,116, 32,116,101,100,105,111,117,115,
197, 32,186,197, 32,186,195, 32,116,121,112,105,110,103, 44, 32,121,
111,117, 32,108,101,116, 32,116,104,101, 32,115,104,111,114,116, 32,
34,112,114,111,103,114, 97,109, 34, 32,116,104, 97,116, 32,121,111,
117, 32,104, 97,118,101, 32, 99,114,101, 97,116,101,100, 32,105,110,
32,121,111,117,114,197, 32,186,197, 32,186,195, 32,119,111,114,100,
45,112,114,111, 99,101,194,115,111,114, 32,115,105,109,112,108,121,
32, 34,100,117,109,112, 34, 32,101, 97, 99,104, 32, 99,111,194,109,
97,110,100, 32,111,110,101, 45, 98,121, 45,111,110,101, 32,111,110,
32,116,104,101, 32,115,121,115,116,101,109,196, 32,186,197, 32,186,
195, 32, 97,110,100, 32,119,105,116,104, 32,110,111, 32, 34, 98,101,
194,108,115, 32, 97,110,100, 32,119,104,105,115,116,108,101,115, 34,
32,116,104,101, 32,106,111, 98, 32,105,115, 32,100,111,110,101, 46,
213, 32,186,197, 32,186,255, 32,202, 32,186,197, 32,186,195, 32, 87,
105,116,104,111,117,116, 32, 97,194,108, 32,116,104,101, 32, 34,111,
118,101,114,104,101, 97,100, 34, 32,111,102, 32,114,117,194,110,105,
110,103, 32, 97,110, 32,105,110,116,101,114, 97, 99,116,105,118,101,
32, 99,111,194,109, 97,110,100,202, 32,186,197, 32,186,195, 32,105,
110,116,101,114,112,114,101,116,101,114, 32, 98, 97,116, 99,104, 32,
106,111, 98,115, 32,114,117,110, 32,105,110, 32, 97, 32,102,114, 97,
99,116,105,111,110, 32,111,102, 32,116,104,101, 32,116,105,109,101,
195, 46,119,105,116,104, 32, 97, 98,105,116, 32,111,102,195, 32,186,
197, 32,186,195, 32,102,111,114,101,116,104,111,117,103,104,116, 32,
97,110,100, 32,107,110,111,119,108,101,100,103,101, 32,111,110, 32,
116,104,101, 32,112, 97,114,116, 32,111,102, 32,116,104,101, 32,117,
115,101,114, 46,212, 32,186,197, 32,186,255, 32,202, 32,186,197, 32,
186,195, 32, 70,111,114, 32,109, 97,110,121, 32,116, 97,115,107,115,
32,116,104,101, 32, 98, 97,116, 99,104, 32,106,111, 98, 32,105,115,
32,116,104,101, 32,115,104,111,114,116,101,115,116, 32,100,105,115,
116, 97,110, 99,101, 32, 98,101,116,119,194,101,110, 32,112,111,105,
110,116,115,194, 32,186,197, 32,186,195, 32, 97,110,100, 32, 97,194,108,
32,115,101,114,105,111,117,115, 32, 68, 79, 83, 32,117,115,101,114,
115, 32,115,104,111,117,108,100, 32, 98,101, 32,102,117,194,108,121,
32,102, 97,109,105,108,105, 97,114, 32,119,105,116,104, 32,105,116,
115, 32,117,115, 97,103,101, 46,196, 32,186,197, 32,186,255, 32,202, 32,
186,197, 32,193,200,255,205,202,205,188,255, 32,255, 32,229, 32,194, 23,
255, 6,204, 6,197, 23, 6,211, 7,230, 4,208, 7, 6,197, 23, 6,
199, 7,203, 2,247, 7, 6,197, 23, 6,200, 7,209, 2,200, 7,198, 2,
200, 7,212, 2,198, 7, 6,197, 23, 6,199, 7,211, 2,198, 7,200, 2,
198, 7,219, 2, 6,197, 23, 6,199, 7,255, 2,195, 2, 6,197, 23,
6,198, 7,255, 2,196, 2, 6,197, 23, 6,255, 7,202, 7, 6,197, 23,
196, 6,255, 4,199, 4, 6,197, 23,196, 6,255, 4,199, 4, 6,197, 23,
196, 6,255, 4,199, 4, 6,197, 23,196, 6,255, 4,199, 4, 6,197, 23,
196, 6,255, 4,199, 4, 6,197, 23,196, 6,241, 4,213, 7, 6,197, 23,
6,255, 7,202, 7, 6,197, 23,196, 6,252, 2,202, 7, 6,197, 23,
196, 6,255, 2,199, 2, 6,197, 23,196, 6,242, 2,212, 7, 6,197, 23,
6,255, 7,202, 7, 6,197, 23,196, 6,255, 4,199, 4, 6,197, 23,
196, 6,255, 4,199, 4, 6,197, 23, 6,255, 7,202, 7, 6,197, 23,
255, 6,204, 6,195, 23,255, 7,255, 7,226, 7,
0}; /* terminator */
unsigned char BATCH004[]={
193,201,255,205,206,205,187, 32,186,210, 32,193,201,234,205,187,207, 32,
186, 32,186,210, 32,186,234, 32,186,207, 32,186, 32,186,210, 32,186,
194, 32, 66, 97,116, 99,104,101,115, 32, 97,114,101, 32,110,111,116,
32,116,104,101, 32, 85,110,105,118,101,114,115, 97,108, 32, 80, 97,
110, 97, 99,101, 97,195, 32,186,207, 32,186, 32,186,210, 32,186,194, 32,
98,117,116, 32, 97,114,101, 32, 97, 32,109,111,115,116, 32,101,194,102,
105, 99,105,101,110,116, 32,119, 97,121, 32,116,111, 32, 98,101,103,
105,110,195, 32,186,207, 32,186, 32,186,210, 32,186,194, 32,109, 97,
107,105,110,103, 32, 98,101,115,116, 32,117,115,101, 32,111,102, 32,
116,104,101, 32,101,110,118,105,114,111,110,109,101,110,116, 46,197, 32,
186,207, 32,186, 32,186,210, 32,186,234, 32,186,207, 32,186, 32,186,
210, 32,186,194, 32, 87,105,116,104, 32,116,104,101, 32, 80, 67, 32,
99, 97,109,101, 32,116,104,101, 32, 97, 98,105,108,105,116,121, 32,
111,102, 32,116,104,101,197, 32,186,207, 32,186, 32,186,210, 32,186,
194, 32, 97,194,112,108,105, 99, 97,116,105,111,110,115, 32,111,112,
101,114, 97,116,111,114, 32,116,111, 32,109, 97,110, 97,103,101, 32,
116,104,101,197, 32,186,207, 32,186, 32,186,210, 32,186,194, 32,101,
110,118,105,114,111,110,109,101,110,116, 32, 97,115, 32,119,101,194,108,
32, 97,115, 32,116,104,101, 32, 68, 97,116, 97, 46,200, 32,186,207, 32,
186, 32,186,210, 32,186,234, 32,186,207, 32,186, 32,186,210, 32,186,
194, 32, 87,105,116,104, 32,116,104, 97,116, 32, 97, 98,105,108,105,
116,121, 32, 99,111,109,101,115, 32,116,104,101, 32,111, 98,108,105,
103, 97,116,105,111,110,194, 32,186,207, 32,186, 32,186,210, 32,186,
194, 32,116,111, 32,117,115,101, 32,116,104, 97,116, 32,112,111,119,
101,114, 32,119,105,115,101,108,121, 46,207, 32,186,207, 32,186, 32,
186,210, 32,186,234, 32,186,207, 32,186, 32,186,210, 32,186,194, 32,
77, 97,121, 32, 84,104,101, 32, 70,111,114, 99,101, 32, 66,101, 32,
87,105,116,104, 32, 89,111,117, 46,206, 32,186,207, 32,186, 32,186,
210, 32,186,234, 32,186,207, 32,186, 32,186,210, 32,186,212, 32, 45,
66,105,194,108, 32, 66,117, 99,107,101,108,115,194, 32, 49, 57,194, 56,
195, 32,186,207, 32,186, 32,186,210, 32,193,200,234,205,188,207, 32,
186, 32,186,209, 32,238,220,206, 32,186, 32,186,226, 32,193,218,205,196,
191,193,218,205,196,191,205, 32,186, 32,186,209, 32,198,221,203, 32,
179,196,205,193,192,195,196,193,217,196,205,194,179,196,205,193,192,
195,196,193,217,196,205,179,205, 32,186, 32,186,226, 32,193,192,205,196,
193,217,193,192,205,196,193,217,205, 32,186, 32,193,200,255,205,206,205,
188,255, 32,255, 32,227, 32,255, 6,208, 6, 7, 6,210, 7,236,113,
207, 7, 6, 7, 6,210, 7,113,234, 7,113,207, 7, 6, 7, 6,210, 7,
113,194, 7,199, 4, 7,195, 4, 7,195, 4, 7,195, 4, 7,201, 4,
7,199, 4,195, 7,113,207, 7, 6, 7, 6,210, 7,113,194, 7,195, 4,
7,195, 4, 7, 4, 7,196, 4, 7,201, 4, 7,195, 4, 7,194, 4,
7,197, 4,195, 7,113,207, 7, 6, 7, 6,210, 7,113,194, 7,198, 4,
7,196, 4, 7,195, 4, 7,194, 4, 7,195, 4, 7,204, 4,197, 7,
113,207, 7, 6, 7, 6,210, 7,113,234, 7,113,207, 7, 6, 7, 6,
210, 7,113,194, 7,196, 2, 7,195, 2, 7,194, 2, 7,196, 2, 7,
195, 2, 7,199, 2, 7,194, 2, 7,195, 2,197, 7,113,207, 7, 6,
7, 6,210, 7,113,194, 7,204, 2, 7,200, 2, 7,194, 2, 7,198, 2,
7,195, 2,197, 7,113,207, 7, 6, 7, 6,210, 7,113,194, 7,203, 2,
7,194, 2, 7,196, 2, 7,194, 2, 7,195, 2, 7,197, 2,200, 7,
113,207, 7, 6, 7, 6,210, 7,113,234, 7,113,207, 7, 6, 7, 6,
210, 7,113,194, 7,196, 3, 7,196, 3, 7,199, 3, 7,197, 3, 7,
195, 3, 7,202, 3,194, 7,113,207, 7, 6, 7, 6,210, 7,113,194, 7,
194, 3, 7,195, 3, 7,196, 3, 7,197, 3, 7,199, 3,207, 7,113,
207, 7, 6, 7, 6,210, 7,113,234, 7,113,207, 7, 6, 7, 6,210, 7,
113,194, 7,195, 6, 7,195, 6, 7,197, 6, 7,194, 6, 7,196, 6,
7,196, 6,206, 7,113,207, 7, 6, 7, 6,210, 7,113,234, 7,113,
207, 7, 6, 7, 6,210, 7,113,212, 7,197, 2, 7,199, 2,194, 7,
196, 2,195, 7,113,207, 7, 6, 7, 6,210, 7,236,113,207, 7, 6,
7, 6,208, 7,240,112,205, 7, 6, 7, 6,208, 7,203,112,229,117,
205, 7, 6, 7, 6,208, 7,203,112,229,117,205, 7, 6, 7, 6,208, 7,
203,112,229,117,205, 7, 6, 7,255, 6,208, 6,255, 7,255, 7,227, 7,
0}; /* terminator */
struct regs{
int AX;
int BX;
int CX;
int DX;
int SI;
int DI;
int DS;
int ES;
}inregs,outregs;
#define SCREENSIZE 4000
unsigned int SCREENSEG= 0xb000;
#define TERMINATOR 1
void showpic(int argc, unsigned char *argv)
{
unsigned int byteoff=0,secondoff=1,packet;
unsigned char byte,bytecount;
int wordcount,target;
unsigned char *databuf;
unsigned int segregs[4];
target = argc-TERMINATOR;
databuf = malloc(SCREENSIZE);
wordcount=0;
do{ bytecount=1; /* start with a seed count */
byte=argv[wordcount];
wordcount++;
/* check to see if its raw */
if(0xC0 == (0xC0 &byte)){ /* if its not, run encoded */
bytecount= 0x3f &byte;
byte=argv[wordcount];
wordcount++;
}
for(packet=0;packet<bytecount;packet++){
if(byteoff<SCREENSIZE){
databuf[byteoff]=byte;
byteoff+=2;
}
else{
databuf[secondoff]=byte;
secondoff+=2;
}
}
}while(wordcount<target);
#define dseg 2
/* returns base of dgroup */
segread(&segregs);
movblock(*((unsigned int*)&databuf),segregs[dseg],
0x0000,SCREENSEG,SCREENSIZE);
free(databuf);
}
unsigned int catch()
{
inregs.AX = 0x0000;
inregs.DX = 0x0000;
sysint(0x16,&inregs,&outregs);
return outregs.AX&0x00ff;
}
main()
{
int i;
sysint(0x11,&inregs,&outregs); /* get equipment list from the bios */
/* get display type (bits 4 and 5 of ax) */
if ((outregs.AX & 0x30) < 0x30)SCREENSEG=0xb800;
/* clearscreen and turn cursor off */
#asm
mov ah,6
mov al,0
mov cx,0
mov dh,24
mov dl,79
mov bh,0
int 10h
xor ax,ax
mov ah,1
mov cx,2000h
int 10h
#endasm
/* allow a keypress to advance */
/* allow escape to exit */
for(i=0;i<5;i++)
{
switch(i)
{
case 0:showpic(sizeof(BATCH000),BATCH000);break;
case 1:showpic(sizeof(BATCH001),BATCH001);break;
case 2:showpic(sizeof(BATCH002),BATCH002);break;
case 3:showpic(sizeof(BATCH003),BATCH003);break;
case 4:showpic(sizeof(BATCH004),BATCH004);break;
}
if(catch()==27)i+=5;
}
/* clear screen and turn cursor on */
#asm
mov ah,6
mov al,0
mov cx,0
mov dh,24
mov dl,79
mov bh,0eh
int 10h
xor ax,ax
mov ah,1
mov cx,0607h
int 10h
#endasm
exit(0);
}